package com.jishuo.nontax.bfc.dao;

import com.jishuo.nontax.bean.bank.BankStationDTO;
import com.jishuo.nontax.bean.bank.Canton;
import com.jishuo.nontax.bean.bank.KeyWord;
import com.jishuo.nontax.bean.bank.PayerType;
import com.jishuo.nontax.bean.vo.BankStationVO;
import com.jishuo.nontax.bean.vo.CantonVO;
import com.jishuo.nontax.bean.vo.PayWayVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @author :hanlipeng
 * @description :
 * @create :2022-12-05 17:22:00
 */
@Mapper
public interface BaseDataMapper {

    long getSeqNextID(String seqName);

    ArrayList<PayWayVO> findPayWay();

    ArrayList<PayerType> findPayerType(int unitid);

    ArrayList<KeyWord> findKeyword();

    ArrayList<Canton> findCanton(String bankcls);

    /** 新增网点 */
    int saveBankStation(BankStationVO bankStationVO);

    int updateBankStation(BankStationVO bankStationVO);

    int deleteBankStation(@Param("cantonid") String cantonid, @Param("bankstationcode") String bankstationcode);

    ArrayList<BankStationDTO> findBankStationBank(@Param("cantonid") int cantonid, @Param("isenable") String isenable);

    ArrayList<BankStationVO> findBankStation(Long cantonid);

    /** 网点列表 */
    List<BankStationVO> findBankStationView(Long cantonid, int isenable);

    List<BankStationVO> findStationCancode(String cantoncode);

    BankStationVO selectStationCode(String bankstationcode, Long bankstationid);

    BankStationVO getBankStation(Long bankstationid);

    int updateBankStationIsenable(long bankstationid);
    int deleteBankstation(long bankstationid);

    CantonVO getCantonByID(long cantonid);
}
